import bus from '@/bus' 
const data = {
  status: 'pass',
  columns: [{
    title: '品牌',
    key: 'currentBrandName',
    align: 'left',
    minWidth: 200
  }, {
    title: '签约联系手机',
    key: 'distributorMobile',
    align: 'left',
    minWidth: 200
  }, {
    title: '签约名称',
    key: 'distributorContractName',
    align: 'left',
    minWidth: 200
  }, {
    title: '签约联系人',
    key: 'distributorContact',
    align: 'left',
    minWidth: 200
  }, {
    title: '签约地址',
    key: 'mobile',
    align: 'left',
    minWidth: 200,
    render: (h, p) => {
      let text = p.row.provinceName + p.row.cityName + p.row.areaName + p.row.address
      return h('div', text)
    }
  }, {
    title: '操作',
    align: 'left',
    minWidth: 200,
    render: (h, p) => {
      let editButton = h('Button',{
        props: {
          type: 'primary',
          size: 'small'
        },
        on: {
          click:() => {
            bus.$emit('onEdit', p.row)
          }
      }}, '编辑')
      let breakBtn = h('Button',{
        props: {
          type: 'default',
          size: 'small'
        },
        style: {
          marginLeft: '5px'
        },
        on: {
          click:() => {
            bus.$emit('onBreak', p.row)
          }
        }
      }, '解约')
      let bindBtn = h('Button', {
        props: {
          type: 'default',
          size: 'small'
        },
        style: {
          marginLeft: '5px'
        },
        on: {
          click:() => {
            bus.$emit('onBind', p.row)
          }
        }
      }, "绑定")
      return h('div', [editButton, breakBtn])
    }
  }],
  data: []
}
export default data